From: Rares Visalom Date: Sun, 9 Jul 2017 16:25:49 +0000 (+0300) Subject: search: Disable multiline descriptions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~240 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=69a9c222d09a928451aec814c7fd796731494a4b;p=gnome-shell.git search: Disable multiline descriptions Having descriptions with multiple lines will clutter the view and make it more confusing for the user. Apart from that, it also makes the search result a lot bigger, potentially losing general vertical alignment. https://bugzilla.gnome.org/show_bug.cgi?id=749957 --- diff --git a/js/ui/search.js b/js/ui/search.js index dd3ea1318..4b2cd520a 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -125,7 +125,7 @@ const ListSearchResult = new Lang.Class({ }, _highlightTerms: function() { - let markup = this._resultsView.highlightTerms(this.metaInfo['description']); + let markup = this._resultsView.highlightTerms(this.metaInfo['description'].split('\n')[0]); this._descriptionLabel.clutter_text.set_markup(markup); },